package com.durablemethods.futures.client;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.google.gwt.user.client.rpc.IsSerializable;

public class NHLBidASk implements Serializable, IsSerializable {

	private static final long serialVersionUID = 8658416885654043709L;
	private NHLTeam team;	
	
	private Integer volume;
	private String traderName;
	private Integer id;
	private Double price;
	private Date transactionDate;
	@AssertTrue(message="Bids/Offers must be in blocks of 5")
	private boolean acceptableVolume;
	public NHLTeam getTeam() {
		return team;
	}
	public void setTeam(NHLTeam team) {
		this.team = team;
	}
	public Integer getVolume() {
		return volume;
	}
	public void setVolume(Integer volume) {
		this.volume = volume;
	}
	public String getTraderName() {
		return traderName;
	}
	public void setTraderId(String traderName) {
		this.traderName = traderName;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Date getTransactionDate() {
		return transactionDate;
	}
	public void setTransactionDate(Date transactionDate) {
		this.transactionDate = transactionDate;
	}
	public boolean isAcceptableVolume() {
		Integer mod = volume%5;
		return mod==0;
	}
	public void setAcceptableVolume(boolean acceptableVolume) {
		this.acceptableVolume = acceptableVolume;
	}
	

}
